Automatic Pop Up Chat
# 👀feature-requests
m
When you get to the webpage where the chatbubble is integrated, it will automatically open a new chat. Also the option that It will open up and start and new conversation by sending a few messages
c
I'm hoping this will be the next release. My customers are asking for this feature.
b
this one i will love too
f
exposing to at @plain-lifeguard-16679 and @bright-magazine-792 vor visibility 🙂
l
a must have
q
yes, need this
f
pretty sure it can be done with some python and html
c
Yes we want the feature
g
Some of the most important features I thought @Botpress was lacking. Chat Bubbles File Uploads Appointment Setters Saw so many people wanting to have these features in the Botpress ChatBot So went ahead and made them. Feel free to to reach out to me.

https://youtu.be/yWIV8K1Nrys

h
This would be awesome!
g
Isn't this already achievable? The docs suggest you can send triggers ...https://botpress.com/docs/cloud/toolbox/events-triggers/ Should be straightforward
g
The t3xt in the bubble is not something provided by BotPress
f
its already possible
just send an event with type:"show"
as soon as the page loads
b
hi can i see an example?
or you can tell us the steps
a
You can achieve this with javascript by popping up the chat at a specific time or after a specific event e.g. user scrolls past x position on page
Another option is to create a chat bubble with html and css and change the visibility to show after a certain point, then use the click from this element as a trigger for botpress
document.getElementById('popup').addEventListener('click', function (){ window.botpressWebChat.sendEvent({ type: "show" }) window.botpressWebChat.sendEvent({ type: 'trigger'}) }); document.getElementById('popup2').addEventListener('click', function (){ window.botpressWebChat.sendEvent({ type: "show" }) window.botpressWebChat.sendEvent({ type: 'trigger'}) });
I hid the botpress toggle with css and then replaced with my own, then used this code to trigger the bot on click
f
⬆️
f
@adventurous-animal-68205 Hello I would really love to achieve this. My only is that I am good at JavaScript. Only trying to follow your instructions. What do you mean by botpress toggle with css.?
q
I saved this, someone posted. Check maybe it helps you.
HTML: ¿Necesitas más ayuda? Might I help you with something CSS: /* Chat-bubble style / .chat-bubble { position: fixed; bottom: 20px; right: 20px; z-index: 9999; / Adicional Style for chat-bubble / } / Chat-bubble that offers help style / .help-popup { display: none; position: fixed; bottom: 110px; right: 50px; width: 200px; height: auto; background-color: #f8f8f8; border: 1px solid #ccc; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 9999; animation: slide-up 0.3s ease-in-out; } .help-popup-content { padding: 10px; text-align: center; } / Uplifting animation style for chat-bubble */ @keyframes slide-up { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } } JS: // Global Variables var chatBubble = document.getElementById('chat-bubble'); var helpPopup = document.getElementById('help-popup'); var openChatButton = document.getElementById('open-chat-button'); // Event on click chat-bubble chatBubble.addEventListener('click', function() { helpPopup.style.display = 'block'; }); // Event on click openChatButton.addEventListener('click', function() { // Aquí puedes agregar la lógica para abrir el chat }); (edited) Styles and animations can be customized according to your needs and preferences. You can adjust the positioning properties (bottom and right) and add additional styles to achieve the desired appearance of the help bubble. In case you want a img as background, ad this in the CSS background-image: url('image-path.jpg');
f
Thanks I really appreciate for the reply. Actually I had my write up wrong. Am not good at understanding codes. Infact am lost. Currently I have been playing around with botpress document codes to embed on my website.. But still not looking pretty on my website. How do I apply this codes to work.. I would really appreciate you demonstrate this on a loom video.. Thanks
I really need some coaching here. Am spending so much time to understand all of this
Do I embed these codes directly on my webpage or how else do I go about it?
m
We need that one
Could you give me the code u use the get than welcome message
j
WE NEED THAT ONE !!!
q
I think its in body of your site, but not sure. Didn't test it and dont have experience with front end, much.
f
Thanks Martin So time consuming. I had to use botpress chatbot in div codes as a widget..
Finally I figured it out 😆
q
great man, how didyou make it ?:P I have that in mind, but still polishing q/a atm, its tricky with real estate, never ends.
j
hes not willing to share man :/ ay Unique SAHRING IS CARING !
sorry for caps***
f
Though it's not actually an automatic pop. But something very close. The button pops and it shows the conversation in the bot without starting a chat..
j
i need that please
f
Make sure you share too when you have a solution. It really took me 3night of restlessness to get this code together.. I will send the codes later when I come on sit.. Hold on...
j
thank you
m
Me too🙏
f
window.botpressWebChat.init({ "composerPlaceholder": "Talk to me", "botConversationDescription": "Kismet Digital Hub", "botId": "7e3c4a11-231e-4216-9ebf-fe199b3ef692", "hostUrl": "https://cdn.botpress.cloud/webchat/v0" "messagingUrl": "https://messaging.botpress.cloud", "clientId": "7e3c4a11-231e-4216-9ebf-fe199b3ef892", "lazySocket": true, "frontendVersion": "v0", "showPoweredBy": true, "className": "", // Removed extra single quotes "showConversationsButton": true, // Removed extra single quotes "stylesheet": "https://webchat-styler-css.botpress.app/prod/456155b5-798e-4da0-ae3f-9e873689c892/v88073/style.css" // Removed extra single quotes }); window.botpressWebChat.onEvent(function () { window.botpressWebChat.sendEvent({ type: 'show' }); }, ['LIFECYCLE.LOADED']);
j
THANK YOU !
where should i put it ?
and what are these links ?
c
Ooo, this would be great.
m
Can you just copy paste it into website
f
Yes place on the embed code area around the footers
j
aroud the footes ?
m
Thanks what’s the footers
f
I mean you embed coded Inside your website builder around the footers area. Mine is Groovepages
j
what links should i put in there ?
f
j
Get this into features
becuase we need this !
19 Views